package searchtab.search.textfile;

import java.util.ArrayList;

import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.source.IAnnotationModel;

public class SearchState {

    private ArrayList<Position> result;

    private String filterText;

    private String previousFilterText = "";

    private IAnnotationModel annotationModel;

    private boolean noResults;

    private boolean markRequired;

    /*
     * Getters & Setters 
     *
     */

    public ArrayList<Position> getResult() {
        return result;
    }

    public void setResult(ArrayList<Position> result) {
        this.result = result;
    }

    public boolean isNoResults() {
        return noResults;
    }

    public void setNoResults(boolean noResults) {
        this.noResults = noResults;
    }

    public String getFilterText() {
        return filterText;
    }

    public void setFilterText(String filterText) {
        this.filterText = filterText;
    }

    public String getPreviousFilterText() {
        return previousFilterText;
    }

    public void setPreviousFilterText(String previousFilterText) {
        this.previousFilterText = previousFilterText;
    }

    public IAnnotationModel getAnnotationModel() {
        return annotationModel;
    }

    public void setAnnotationModel(IAnnotationModel annotationModel) {
        this.annotationModel = annotationModel;
    }

    public boolean isMarkRequired() {
        return markRequired;
    }

    public void setMarkRequired(boolean markRequired) {
        this.markRequired = markRequired;
    }

}
